﻿-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date, ,>
-- Description:	<Description, ,>
-- =============================================
CREATE FUNCTION LastDwUpdate
(
	-- Add the parameters for the function here
)
RETURNS datetime
AS
BEGIN
	return (
		select top 1 cast(PropValue as datetime)
		from Properties
		where PropName like 'LastDataWarehouseUpdate'
	);
END
